//
//  JXLDiscoverTableViewController.swift
//  MicroBlog
//
//  Created by 贾晓磊 on 16/9/19.
//  Copyright © 2016年 贾晓磊. All rights reserved.
//

import UIKit

class JXLDiscoverTableViewController: JXLVisitorTableViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        
        if isLogin {
            
            //把搜索按钮添加给titleView
            navigationItem.titleView = JXLSearchView.searchView()
        } else {
            visitorView?.updatevisitorInfo(message: "登录后，最新、最热微博尽在掌握，不再会与实事潮流擦肩而过", imageName: "visitordiscover_image_message")
        }

        //setupNavUI()
    }

//    private func setupNavUI() {
//        navigationItem.leftBarButtonItem = UIBarButtonItem(title: "登录")
//        navigationItem.rightBarButtonItem = UIBarButtonItem(title: "注册")
//           }

   }
